#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_cs2w.dpatch by LI Daobing <lidaobing@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: give a default template directory.

@DPATCH@
diff -urNad chmsee~/cs2w/cs2w.py chmsee/cs2w/cs2w.py
--- chmsee~/cs2w/cs2w.py	2007-07-24 11:02:59.000000000 +0800
+++ chmsee/cs2w/cs2w.py	2007-07-27 21:24:25.000000000 +0800
@@ -6,12 +6,14 @@
 """
 Extract CHM for web browsing.
 
-Usage: cs2w [-C dir] -T tpl chmfile
+Usage: cs2w [-C dir] [-T tpl] chmfile
 Example: cs2w -C /var/www/freebsd_handbook -T ./mytempl FreeBSD_Handbook.chm
 
 Options:
-  -C, --dir                 extract to this target directory
-  -T, --tpl                 web template directory
+  -C, --dir                 extract to this target directory, 
+                            default is current directory.
+  -T, --tpl                 web template directory,
+                            default is `/usr/share/chmsee/cs2w/template'.
   -h, --help                display this help and exit
   -V, --version             print version information and exit
 
@@ -191,7 +193,7 @@
     except getopt.GetoptError:
         display_usage(2)
 
-    tpldir, target = "", ""
+    tpldir, target = "/usr/share/chmsee/cs2w/template", ""
     global verbose
 
     for o, a in opts:
